$(document).ready(function()
{
	$('#save-btn').click(function(eve){
		//eve.preventDefault();
		//alert("ttt");
		console.log('test');
		//$.get('http://localhost/ci/index.php/ajax/process', function(html){console.log(html);$('.info').text(html);});
		
		
		var title = $('#text-textarea').val();
		$.ajax({
			type: "POST",
			url: "http://localhost/ci/index.php/doit/add",
			data: $('#form-hold').serialize(),
			success: function(html){$(':input','#form-hold')  
			.not(':button, :submit, :reset, :hidden')  
			.val('')  
			.removeAttr('checked')  
			.removeAttr('selected'); 
			}
		});
	});
});